package cn.com.roy.thread.t3_1_11.p_r_test;

public class TreadC implements Runnable{
    private String lock ;
    private C c;
    public TreadC(C c){
        this.c = c;
    }
    public void run() {
        while (true){
            c.getValue();
            try {
                Thread.sleep(1000);
            } catch (InterruptedException e) {
                e.printStackTrace();
            }
        }
    }
}
